package com.wjq.mapper;


import com.wjq.entity.Result;
import com.wjq.entity.ResultMap;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Mapper
public interface ResultMapper {

    List<Result> queryResultList(Integer question_id);

    Result selectResultById(ResultMap resultMap);

    void updateResultById(Result result);

    void deleteResultById(Integer id);//通过选项id删除

    void addResult(Result result);

    List<Result> getAnswer(@Param("questionnaireId") Integer questionnaireId,@Param("fillId") Integer fillId);

}
